<?php

use think\migration\Migrator;
use think\migration\db\Column;

class CreateTagsTable extends Migrator
{
    public function up()
    {
        $this->table('tags')
            ->addColumn('name', 'string', ['limit' => 16])
            ->save();
    }

    public function down()
    {
        $this->dropTable('tags');
    }
}
